# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-types-cryptography
_pkgname=${pkgname#python-}
pkgver=3.3.23.2
pkgrel=5
pkgdesc='Typing stubs for cryptography.'
arch=('any')
url='https://github.com/python/typeshed'
license=('Apache')
depends=('python')
makedepends=('python-setuptools')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('f718a47c3d41fe58a6b763a29d337af784ceecd015a5803e676f320b7a9f3a8a3ddd2f4b069bab57f24846aa75c43b0c0bfa74be3d868bcf950a587a4d08607a')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

